﻿using System;
using Google.Translates.Core;

namespace ml_test_google_trans.TTS
{
    public partial class SpeechByBing : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSpeak_Click(object sender, EventArgs e)
        {
            var startDate = DateTime.Now;
            new SpeechByBingHttp().SpeakSentence(txtSrcWords.Text, "");
            lblMsg.Text = "Uses Time : [" + (DateTime.Now - startDate).TotalMilliseconds + "]ms";
        }
    }
}
